/*
 *	xstring.h
 *	  part of the xlibrary by SunDEV (http://sundev.890m.com)
 *
 *	Changelog :
 *	  ##-##-## : First public release
 *
 */

#ifndef _XSTRING_H
#define _XSTRING_H

#define basename(a) endName('/', a)
#define baseext(a) endName('.', a)

char *endName(char delimiter, char *path);
int cmpext(char *fn, char *ext);
char *xstrdup(char *str);
void *xmemdup(void *data, u32 dataSize);
char* itoa(int value, char* result, int base);

#endif

